<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增书目</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../images/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/templets/js/table_function.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/story.js"></script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li class="thisTab"><a href="mybooks.php"><span>连载书目</span></a></li>
          <li><a href="story_list_content.php"><span>连载内容</span></a></li>
        </ul>
      </div>
      <div id="mainCp">
      <h3 class="meTitle"><strong>&nbsp;新增书目</strong></h3>  
        <form class="mL10 mR10 mTB10" name="form1" action="story_add_action.php" enctype="multipart/form-data" method="post" onsubmit="return checkSubmitAdd();">
          <table cellspacing="1" class="submit">
             <tbody>
              <tr>
                <td width="15%" align="right" valign="top">隶属栏目：</td>
                <td><select name="catid" id="catid">
                    <option value='0'>请选择栏目</option>
                    <?php
									if(!isset($catid)) $catid = 0;
									foreach($btypes as $k=>$v){
										if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
										else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
										foreach($stypes[$k] as $kk=>$vv){
											if($catid!=$kk)  echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
											else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
										}
									}
								?>
                  </select></td>
              </tr>
              <tr>
                <td align="right" valign="top">书名：</td>
                <td><input name="bookname" type="text" class="text" id="bookname" size="45" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">作者：</td>
                <td><input name="author" type="text" class="text" id="author" value="<?php echo $cfg_ml->M_UserName?>" size="8" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">上架时间：</td>
                <td><input name="pubdate" type="text" class="text" id="pubdate" value="<?php echo GetDateTimeMk(time()); ?>" size="22" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">关键字：</td>
                <td><input name="keywords" type="text" class="text" id="keywords" size="50" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">封面图片：</td>
                <td><input name="litpic" type="file" id="litpic" size="35" onchange="SeePic($Obj('picview'),$Obj('litpic'));" />
                  <div class="clear"></div>
                  <img src="images/pview.gif" alt="封面" name="picview" width="120" height="96" hspace="8" vspace="8" id="picview" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">摘要：</td>
                <td><textarea style="width:80%" name="description" cols="35" rows="4" id="description"></textarea></td>
              </tr>
              <tr>
                <td align="right" valign="top">内容：</td>
                <td><?php GetEditor("body","",300,"MemberLit");?></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45" align="right" valign="top">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>
</body>
</html>

